﻿using System;

namespace Marmat.Forms
{
    public partial class DateTimePicker
    {

        /// <summary>
    /// 将 Value 属性重置为其默认值。
    /// </summary>
        public void ResetValue()
        {
            this.Value = default;
        }

        /// <summary>
    /// 是否应该序列化 Value 属性。
    /// </summary>
    /// <returns></returns>
        protected internal bool ShouldSerializeValue()
        {
            var st = new DateTime(0L);
            return !(this.Value == default || this.Value == st);
        }
    }
}